# Error while building using 'ExternalProject_Add':

#CMake Error at /.../share/cmake/Modules/Platform/Darwin.cmake:211 (message):
#  CMAKE_OSX_DEPLOYMENT_TARGET is '10.9' but CMAKE_OSX_SYSROOT:
#   "iphoneos"
#  is not set to a MacOSX SDK with a recognized version.  Either set
#  CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
#  empty.

unset(ENV{ACTION})
unset(ENV{AD_HOC_CODE_SIGNING_ALLOWED})
unset(ENV{ALTERNATE_GROUP})
unset(ENV{ALTERNATE_MODE})
unset(ENV{ALTERNATE_OWNER})
unset(ENV{ALWAYS_SEARCH_USER_PATHS})
unset(ENV{ALWAYS_USE_SEPARATE_HEADERMAPS})
unset(ENV{APPLE_INTERNAL_DEVELOPER_DIR})
unset(ENV{APPLE_INTERNAL_DIR})
unset(ENV{APPLE_INTERNAL_DOCUMENTATION_DIR})
unset(ENV{APPLE_INTERNAL_LIBRARY_DIR})
unset(ENV{APPLE_INTERNAL_TOOLS})
unset(ENV{APPLY_RULES_IN_COPY_FILES})
unset(ENV{ARCHS_STANDARD_32_64_BIT})
unset(ENV{ARCHS_STANDARD_32_BIT})
unset(ENV{ARCHS_STANDARD_64_BIT})
unset(ENV{ARCHS_STANDARD_INCLUDING_64_BIT})
unset(ENV{ARCHS_STANDARD})
unset(ENV{ARCHS_UNIVERSAL_IPHONE_OS})
unset(ENV{ARCHS})
unset(ENV{AVAILABLE_PLATFORMS})
unset(ENV{BUILD_COMPONENTS})
unset(ENV{BUILD_DIR})
unset(ENV{BUILD_ROOT})
unset(ENV{BUILD_STYLE})
unset(ENV{BUILD_VARIANTS})
unset(ENV{BUILT_PRODUCTS_DIR})
unset(ENV{CACHE_ROOT})
unset(ENV{CCHROOT})
unset(ENV{CHMOD})
unset(ENV{CHOWN})
unset(ENV{CLASS_FILE_DIR})
unset(ENV{CLEAN_PRECOMPS})
unset(ENV{CLONE_HEADERS})
unset(ENV{CMAKE_OSX_DEPLOYMENT_TARGET})
unset(ENV{CODESIGNING_FOLDER_PATH})
unset(ENV{CODE_SIGNING_ALLOWED})
unset(ENV{CODE_SIGNING_REQUIRED})
unset(ENV{CODE_SIGN_CONTEXT_CLASS})
unset(ENV{COMBINE_HIDPI_IMAGES})
unset(ENV{COMMAND_MODE})
unset(ENV{COMPOSITE_SDK_DIRS})
unset(ENV{COMPRESS_PNG_FILES})
unset(ENV{CONFIGURATION_BUILD_DIR})
unset(ENV{CONFIGURATION_TEMP_DIR})
unset(ENV{CONFIGURATION})
unset(ENV{COPYING_PRESERVES_HFS_DATA})
unset(ENV{COPY_PHASE_STRIP})
unset(ENV{COPY_RESOURCES_FROM_STATIC_FRAMEWORKS})
unset(ENV{CP})
unset(ENV{CREATE_INFOPLIST_SECTION_IN_BINARY})
unset(ENV{CURRENT_ARCH})
unset(ENV{CURRENT_VARIANT})
unset(ENV{DEAD_CODE_STRIPPING})
unset(ENV{DEBUGGING_SYMBOLS})
unset(ENV{DEBUG_INFORMATION_FORMAT})
unset(ENV{DEFAULT_COMPILER})
unset(ENV{DEFAULT_KEXT_INSTALL_PATH})
unset(ENV{DEPLOYMENT_LOCATION})
unset(ENV{DEPLOYMENT_POSTPROCESSING})
unset(ENV{DERIVED_FILES_DIR})
unset(ENV{DERIVED_FILE_DIR})
unset(ENV{DERIVED_SOURCES_DIR})
unset(ENV{DEVELOPER_APPLICATIONS_DIR})
unset(ENV{DEVELOPER_BIN_DIR})
# unset(ENV{DEVELOPER_DIR}) # Keep it to allow Xcode switching
unset(ENV{DEVELOPER_FRAMEWORKS_DIR_QUOTED})
unset(ENV{DEVELOPER_FRAMEWORKS_DIR})
unset(ENV{DEVELOPER_LIBRARY_DIR})
unset(ENV{DEVELOPER_SDK_DIR})
unset(ENV{DEVELOPER_TOOLS_DIR})
unset(ENV{DEVELOPER_USR_DIR})
unset(ENV{DEVELOPMENT_LANGUAGE})
unset(ENV{DO_HEADER_SCANNING_IN_JAM})
unset(ENV{DSTROOT})
unset(ENV{DT_TOOLCHAIN_DIR})
unset(ENV{DWARF_DSYM_FILE_NAME})
unset(ENV{DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT})
unset(ENV{DWARF_DSYM_FOLDER_PATH})
unset(ENV{EFFECTIVE_PLATFORM_NAME})
unset(ENV{EMBEDDED_PROFILE_NAME})
unset(ENV{ENABLE_HEADER_DEPENDENCIES})
unset(ENV{ENTITLEMENTS_REQUIRED})
unset(ENV{EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS})
unset(ENV{EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES})
unset(ENV{FILE_LIST})
unset(ENV{FIXED_FILES_DIR})
unset(ENV{FRAMEWORK_VERSION})
unset(ENV{GCC3_VERSION})
unset(ENV{GCC_GENERATE_DEBUGGING_SYMBOLS})
unset(ENV{GCC_INLINES_ARE_PRIVATE_EXTERN})
unset(ENV{GCC_OPTIMIZATION_LEVEL})
unset(ENV{GCC_PFE_FILE_C_DIALECTS})
unset(ENV{GCC_PREPROCESSOR_DEFINITIONS})
unset(ENV{GCC_SYMBOLS_PRIVATE_EXTERN})
unset(ENV{GCC_THUMB_SUPPORT})
unset(ENV{GCC_TREAT_WARNINGS_AS_ERRORS})
unset(ENV{GCC_VERSION_IDENTIFIER})
unset(ENV{GCC_VERSION})
unset(ENV{GENERATE_MASTER_OBJECT_FILE})
unset(ENV{GENERATE_PKGINFO_FILE})
unset(ENV{GENERATE_PROFILING_CODE})
unset(ENV{GID})
unset(ENV{GROUP})
unset(ENV{HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT})
unset(ENV{HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES})
unset(ENV{HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS})
unset(ENV{HEADERMAP_INCLUDES_PROJECT_HEADERS})
unset(ENV{HEADER_SEARCH_PATHS})
unset(ENV{ICONV})
unset(ENV{INFOPLIST_EXPAND_BUILD_SETTINGS})
unset(ENV{INFOPLIST_OUTPUT_FORMAT})
unset(ENV{INFOPLIST_PREPROCESS})
unset(ENV{INSTALL_DIR})
unset(ENV{INSTALL_GROUP})
unset(ENV{INSTALL_MODE_FLAG})
unset(ENV{INSTALL_OWNER})
unset(ENV{INSTALL_ROOT})
unset(ENV{IPHONEOS_DEPLOYMENT_TARGET}) # !
unset(ENV{JAVAC_DEFAULT_FLAGS})
unset(ENV{JAVA_APP_STUB})
unset(ENV{JAVA_ARCHIVE_CLASSES})
unset(ENV{JAVA_ARCHIVE_TYPE})
unset(ENV{JAVA_COMPILER})
unset(ENV{JAVA_FRAMEWORK_RESOURCES_DIRS})
unset(ENV{JAVA_JAR_FLAGS})
unset(ENV{JAVA_SOURCE_SUBDIR})
unset(ENV{JAVA_USE_DEPENDENCIES})
unset(ENV{JAVA_ZIP_FLAGS})
unset(ENV{JIKES_DEFAULT_FLAGS})
unset(ENV{KEEP_PRIVATE_EXTERNS})
unset(ENV{LD_DEPENDENCY_INFO_FILE})
unset(ENV{LD_GENERATE_MAP_FILE})
unset(ENV{LD_MAP_FILE_PATH})
unset(ENV{LD_NO_PIE})
unset(ENV{LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER})
unset(ENV{LEGACY_DEVELOPER_DIR})
unset(ENV{LEX})
unset(ENV{LIBRARY_FLAG_NOSPACE})
unset(ENV{LIBRARY_KEXT_INSTALL_PATH})
unset(ENV{LINKER_DISPLAYS_MANGLED_NAMES})
unset(ENV{LINK_FILE_LIST_normal_armv7})
unset(ENV{LINK_WITH_STANDARD_LIBRARIES})
unset(ENV{LOCAL_ADMIN_APPS_DIR})
unset(ENV{LOCAL_APPS_DIR})
unset(ENV{LOCAL_DEVELOPER_DIR})
unset(ENV{LOCAL_LIBRARY_DIR})
unset(ENV{MAC_OS_X_PRODUCT_BUILD_VERSION})
unset(ENV{MAC_OS_X_VERSION_ACTUAL})
unset(ENV{MAC_OS_X_VERSION_MAJOR})
unset(ENV{MAC_OS_X_VERSION_MINOR})
unset(ENV{MAKEFLAGS})
unset(ENV{MAKELEVEL})
unset(ENV{MFLAGS})
unset(ENV{MODULE_CACHE_DIR})
unset(ENV{NATIVE_ARCH_32_BIT})
unset(ENV{NATIVE_ARCH_64_BIT})
unset(ENV{NATIVE_ARCH_ACTUAL})
unset(ENV{NATIVE_ARCH})
unset(ENV{NO_COMMON})
unset(ENV{OBJECT_FILE_DIR_normal})
unset(ENV{OBJECT_FILE_DIR})
unset(ENV{OBJROOT})
unset(ENV{ONLY_ACTIVE_ARCH})
unset(ENV{OPTIMIZATION_LEVEL})
unset(ENV{OSAC})
unset(ENV{OS})
unset(ENV{OTHER_CFLAGS})
unset(ENV{OTHER_CPLUSPLUSFLAGS})
unset(ENV{OTHER_LDFLAGS})
unset(ENV{PASCAL_STRINGS})
unset(ENV{PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES})
unset(ENV{PKGINFO_FILE_PATH})
unset(ENV{PLATFORM_DEVELOPER_APPLICATIONS_DIR})
unset(ENV{PLATFORM_DEVELOPER_BIN_DIR})
unset(ENV{PLATFORM_DEVELOPER_LIBRARY_DIR})
unset(ENV{PLATFORM_DEVELOPER_SDK_DIR})
unset(ENV{PLATFORM_DEVELOPER_TOOLS_DIR})
unset(ENV{PLATFORM_DEVELOPER_USR_DIR})
unset(ENV{PLATFORM_DIR})
unset(ENV{PLATFORM_NAME})
unset(ENV{PLATFORM_PREFERRED_ARCH})
unset(ENV{PLATFORM_PRODUCT_BUILD_VERSION})
unset(ENV{PLIST_FILE_OUTPUT_FORMAT})
unset(ENV{PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR})
unset(ENV{PRECOMP_DESTINATION_DIR})
unset(ENV{PRESERVE_DEAD_CODE_INITS_AND_TERMS})
unset(ENV{PRODUCT_NAME})
unset(ENV{PRODUCT_SETTINGS_PATH})
unset(ENV{PROFILING_CODE})
unset(ENV{PROJECT_DERIVED_FILE_DIR})
unset(ENV{PROJECT_DIR})
unset(ENV{PROJECT_FILE_PATH})
unset(ENV{PROJECT_NAME})
unset(ENV{PROJECT_TEMP_DIR})
unset(ENV{PROJECT_TEMP_ROOT})
unset(ENV{PROJECT})
unset(ENV{RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS})
unset(ENV{REMOVE_CVS_FROM_RESOURCES})
unset(ENV{REMOVE_GIT_FROM_RESOURCES})
unset(ENV{REMOVE_HG_FROM_RESOURCES})
unset(ENV{REMOVE_SVN_FROM_RESOURCES})
unset(ENV{REZ_COLLECTOR_DIR})
unset(ENV{REZ_OBJECTS_DIR})
unset(ENV{SCAN_ALL_SOURCE_FILES_FOR_INCLUDES})
unset(ENV{SCRIPT_INPUT_FILE_COUNT})
unset(ENV{SCRIPT_OUTPUT_FILE_COUNT})
unset(ENV{SDKROOT}) # !
unset(ENV{SDK_DIR})
unset(ENV{SDK_NAME})
unset(ENV{SDK_PRODUCT_BUILD_VERSION})
unset(ENV{SED})
unset(ENV{SEPARATE_STRIP})
unset(ENV{SEPARATE_SYMBOL_EDIT})
unset(ENV{SET_DIR_MODE_OWNER_GROUP})
unset(ENV{SET_FILE_MODE_OWNER_GROUP})
unset(ENV{SHARED_DERIVED_FILE_DIR})
unset(ENV{SHARED_PRECOMPS_DIR})
unset(ENV{SKIP_INSTALL})
unset(ENV{SOURCE_ROOT})
unset(ENV{SRCROOT})
unset(ENV{STRINGS_FILE_OUTPUT_ENCODING})
unset(ENV{STRIP_INSTALLED_PRODUCT})
unset(ENV{STRIP_STYLE})
unset(ENV{SUPPORTED_DEVICE_FAMILIES})
unset(ENV{SUPPORTED_PLATFORMS})
unset(ENV{SYMROOT})
unset(ENV{SYSTEM_ADMIN_APPS_DIR})
unset(ENV{SYSTEM_APPS_DIR})
unset(ENV{SYSTEM_CORE_SERVICES_DIR})
unset(ENV{SYSTEM_DEMOS_DIR})
unset(ENV{SYSTEM_DEVELOPER_APPS_DIR})
unset(ENV{SYSTEM_DEVELOPER_BIN_DIR})
unset(ENV{SYSTEM_DEVELOPER_DEMOS_DIR})
unset(ENV{SYSTEM_DEVELOPER_DIR})
unset(ENV{SYSTEM_DEVELOPER_DOC_DIR})
unset(ENV{SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR})
unset(ENV{SYSTEM_DEVELOPER_JAVA_TOOLS_DIR})
unset(ENV{SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR})
unset(ENV{SYSTEM_DEVELOPER_RELEASENOTES_DIR})
unset(ENV{SYSTEM_DEVELOPER_TOOLS_DOC_DIR})
unset(ENV{SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR})
unset(ENV{SYSTEM_DEVELOPER_TOOLS})
unset(ENV{SYSTEM_DEVELOPER_USR_DIR})
unset(ENV{SYSTEM_DEVELOPER_UTILITIES_DIR})
unset(ENV{SYSTEM_DOCUMENTATION_DIR})
unset(ENV{SYSTEM_KEXT_INSTALL_PATH})
unset(ENV{SYSTEM_LIBRARY_DIR})
unset(ENV{TARGETED_DEVICE_FAMILY})
unset(ENV{TARGETNAME})
unset(ENV{TARGET_BUILD_DIR})
unset(ENV{TARGET_NAME})
unset(ENV{TARGET_TEMP_DIR})
unset(ENV{TEMP_DIR})
unset(ENV{TEMP_FILES_DIR})
unset(ENV{TEMP_FILE_DIR})
unset(ENV{TEMP_ROOT})
unset(ENV{TOOLCHAINS})
unset(ENV{UID})
unset(ENV{UNSTRIPPED_PRODUCT})
unset(ENV{USER_APPS_DIR})
unset(ENV{USER_LIBRARY_DIR})
unset(ENV{USE_DYNAMIC_NO_PIC})
unset(ENV{USE_HEADERMAP})
unset(ENV{USE_HEADER_SYMLINKS})
unset(ENV{VALIDATE_PRODUCT})
unset(ENV{VALID_ARCHS})
unset(ENV{VERBOSE_PBXCP})
unset(ENV{VERSION_INFO_BUILDER})
unset(ENV{VERSION_INFO_FILE})
unset(ENV{VERSION_INFO_STRING})
unset(ENV{WARNING_CFLAGS})
unset(ENV{XCODE_APP_SUPPORT_DIR})
unset(ENV{XCODE_PRODUCT_BUILD_VERSION})
unset(ENV{XCODE_VERSION_ACTUAL})
unset(ENV{XCODE_VERSION_MAJOR})
unset(ENV{XCODE_VERSION_MINOR})
unset(ENV{XPCSERVICES_FOLDER_PATH})
unset(ENV{YACC})
unset(ENV{arch})
unset(ENV{variant})
